function columns(vm) {
  const cols = [
    // {
    //   title: '序号',
    //   dataIndex: '序号',
    //   width: 60,
    //   align: 'center',
    //   customRender: function (t, r, index) {
    //     return parseInt(index) + 1
    //   }
    // },
    {
      title: '类型名',
      align: 'center',
      dataIndex: 'typeName',
      customRender: (text, record, index) => {
        const obj = {
          children: text !== null ? text : "",
          attrs: {},
        };
        obj.attrs.rowSpan = vm.mergeCells(
          text,
          vm.dataSource,
          "typeName",
          index
        );
        return obj;
      },
    },
    {
      title: '考核内容',
      align: 'center',
      dataIndex: 'checkContent',
      customRender: (text, record, index) => {
        const obj = {
          children: text !== null ? text : "",
          attrs: {},
        };
        obj.attrs.rowSpan = vm.mergeCells(
          text,
          vm.dataSource,
          "checkContent",
          index
        );
        return obj;
      },
    },
    {
      title: '考核分值',
      align: 'center',
      dataIndex: 'score',
      customRender: (text, record, index) => {
        const obj = {
          children: text !== null ? text : "",
          attrs: {},
        };
        obj.attrs.rowSpan = vm.mergeCells(
          text,
          vm.dataSource,
          "score",
          index
        );
        return obj;
      },
    },
    {
      title: '计分标准',
      align: 'center',
      dataIndex: 'normName',
    }
  ]
  return cols
}

export default columns